<?php
$data = array("hello", 15, 1.234, array(1,2,3), (object)[2,34], null);

foreach ($data as $element) {
    if (is_numeric($element) === true) {
        var_dump($element);
    }
    else {
        echo gettype($element), "\n";
    }
}
?>